import Vue from 'vue'
import App from './App2.vue'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'

import Home from './Hom e.vue'
import Explorer from './Explorer.vue'
import Cart from './Cart.vue'
import Me from './Me.vue'


Vue.use(VueRouter);
const  router =new  VueRouter({
      mode:'history',
      base:__dirname,
      linkActiveClass:"active",
      routes:[
            {path:'/home',component:Home},
            {path:'/explorer',component:Explorer},
            {path:'/cart',component:Cart},
            {path:'/me',component:Me}

      ]
})
new Vue({
      el:'#app',
      router,
      render:h=>h(App)
})

Vue.use(VueResource);
new Vue({
      http:{
            root:"/",
            headers:{}
      },
      el: '#app',
      render: h => h(Home)
})